home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr22 / byte24.zip / IFACE.H < prev    next >
Text File  |  1993-04-14  |  5KB  |  119 lines

  1. /* definitions for benchfac.c, part of the byte benchmarks
  2. ** BYTE magazine, Spring 1990
  3. */
  4.  
  5. #define FASTLIMIT    10     /* minimum time for fast machines */
  6. #define MEDLIMIT    30     /* minimum time for 16MHz-8MHz machs*/
  7. #define SLOWLIMIT    30    /* minimum time - slow machines */
  8. #define TEXTRESWIDE    76    /* text results array width */
  9. #define TEXTRESHIGH    60    /* text results arrray height */
  10. #define TEXTRESSIZE    4560    /* TRH * TRW */
  11. #define HWIDTH        30    /* width of help text */
  12. #define YESNO        1    /* alert_box code to accept input*/
  13.  
  14. /* big predefined strings */
  15. #define USAGESTRING    "Invalid option. Use bbench /h for list of valid switches."
  16. #define NAMEDEF        "Test Machine"
  17. #define BARSTRING    "▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒"
  18. #define BLANKSTRING "                                                                        "
  19. #define WINPAUSESTRING "Working ... Just a moment"
  20. #define SKEYLISTSTRING    "Tab-Graphs   PgUp/PgDn-Scroll  ^W-Write Results File  Esc-Previous Menu"
  21. #define GRAPHKLSTRING    "             Tab -- Review Results                 Esc -- Previous Menu "
  22. #define MENKEYLISTSTRING " PgUp/PgDn-Scroll Info    /-Selection Bar   Enter-Select      ESC-Exit   "
  23. #define CMKEYLISTSTRING " PgUp/PgDn-Scroll Info   /-Selection Bar  Enter-Select    ESC-Previous "
  24. #define TSCKEYLISTSTRING "PgUp/PgDn-Scroll Info  /-Cursor  \x1b/\x1a-Modify  Enter-Select  ESC-Previous       "
  25.  
  26. #define DOUBBAR "=========================================================================="
  27. #define SINGBAR "--------------------------------------------------------------------------"
  28. #define NTSTRING    "No tests specified -- Check defaults"
  29. #define MDASTRING    "This machine cannot do pixel graphics"
  30. #define IDSSTRING    "Insufficient disk space for File I/O. Continue? [y/n]"
  31. #define DERRSTRING    "Disk Error: For floppies, make sure drive door is closed. Continue? [y/n]"
  32. #define NOHELPFILESTRING1 "Info File (BBHELP.DAT)"
  33. #define NOHELPFILESTRING2 "      Not Found."
  34. #define DBTITLESTRING  "     Name      * CPU-NB FPU-NB Dsk-NB Vid-NB  CPU-DT  FPU-DT  Dsk-DT  Vid-DT "
  35. #define NODATASTRING "%14s           N O   D A T A    A V A I L A B L E                 "
  36. #define ONSTR     "On"
  37. #define OFFSTR     "Off"
  38.  
  39. /* macros */
  40.  
  41. #define CPUSPECD    (tdef[0]||tdef[1]||tdef[2]||tdef[3])
  42. #define SMOVESPECD    (tdef[3])
  43. #define FPUSPECD    (tdef[4]||tdef[5]) 
  44. #define DISKSPECD     (tdef[6]||tdef[8])
  45. #define VIDSPECD    (tdef[10]||tdef[11])
  46.  
  47. #define BLANKSCREEN    mk_window(&bswin, NULL, 0, 0, 80, 25, BLACK, BLACK,            BLACK, BLACK, 0, 0)
  48. #define UNBLANKSCREEN kill_window(&bswin)
  49. #define isnprnt(x)      (( (x) < 0x20 ) || ( (x) > 0x7e))
  50.  
  51.  
  52. /* box definitions */
  53. /* main menu */
  54. char main_num_valid = 6;
  55. char main_valid_lines[6] = {0,2,4,6,8,10};
  56.  
  57. /* controls menu */
  58. char controls_valid_lines[5] = {0, 2, 4, 6, 8};
  59.  
  60. /* test suite menu */
  61. char tsuite_num_valid  = 16;
  62. char tsuite_valid_lines[16] = {0,1,2,3,5,6,8,9,10,11,13,14,16,18,19,20};
  63.  
  64. /* system setup menu */
  65. char sysset_num_valid  = 9;
  66. char sysset_valid_lines[9] = {0,2,3,4,5,7,8,10,11};
  67.  
  68. /* comparison editor menu */
  69. char edat_valid_lines[20] =    \
  70.          {2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21};
  71.  
  72. /* sort box */
  73. char sortwin_valid_lines[9] = {2,3,4,5,6,7,8,9};
  74.  
  75.  
  76. /* logo */
  77. char logoarray[306]={
  78.  
  79. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  80.              0,0xdb,0xdb,0xdb,0xdb,0xdb,0xdb,0xdc,0,
  81.                   0xdb,0xdb,0xdb,0,0,0,0xdb,0,
  82.              0xdf,0xdf,0xdb,0xdb,0xdb,0xdf,0xdf,0,
  83.              0xdb,0xdb,0xdb,0xdf,0xdf,0xdf,0xdf,0,0,
  84.  
  85.              0,0xdb,0xdb,0xdb,0xdb,0,0,0xdb,0,
  86.                     0xdb,0xdb,0xdb,0,0,0,0xdb,0,
  87.              0,0,0xdb,0xdb,0xdb,0,0,0,
  88.              0xdb,0xdb,0xdb,0,0,0,0,0,0,
  89.  
  90.              0,0xdb,0xdb,0xdb,0xdb,0,0,0xdb,0,
  91.              0xdb,0xdb,0xdb,0,0,0,0xdb,0,
  92.              0,0,0xdb,0xdb,0xdb,0,0,0,
  93.              0xdb,0xdb,0xdb,0,0,0,0,0,0,
  94.  
  95.              0,0xdb,0xdb,0xdb,0xdb,0xdf,0xdf,0xdb,0,
  96.              0xdb,0xdb,0xdb,0xdb,0xdb,0xdb,0xdb,0,
  97.              0,0,0xdb,0xdb,0xdb,0,0,0,
  98.              0xdb,0xdb,0xdb,0xdf,0xdf,0xdf,0xdf,0,0,
  99.  
  100.              0,0xdb,0xdb,0xdb,0xdb,0,0,0xdb,0,
  101.              0,0,0,0xdb,0xdb,0xdb,0,0,
  102.              0,0,0xdb,0xdb,0xdb,0,0,0,
  103.              0xdb,0xdb,0xdb,0,0,0,0,0,0,
  104.  
  105.              0,0xdb,0xdb,0xdb,0xdb,0,0,0xdb,0,
  106.              0,0,0,0xdb,0xdb,0xdb,0,0,
  107.              0,0,0xdb,0xdb,0xdb,0,0,0,
  108.              0xdb,0xdb,0xdb,0,0,0,0,0,0,
  109.  
  110.                  0,0xdb,0xdb,0xdb,0xdb,0xdb,0xdb,0xdf,0,
  111.              0,0,0,0xdb,0xdb,0xdb,0,0,
  112.              0,0,0xdb,0xdb,0xdb,0,0,0,
  113.              0xdb,0xdb,0xdb,0xdc,0xdc,0xdc,0xdc,0,0,
  114.  
  115.     0,'D','O','S',0,'B',0,'e',0,'n',0,'c',0,'h',
  116.     0,'m',0,'a',0,'r',0,'k',0,'s',0,0,'v','.',0,'2','.','4',0,0
  117.              };
  118.  
  119.